/*
 * Copyright (C) 2012-2013  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.launch.swing;

import java.awt.Color;
import java.io.IOException;
import java.net.URL;

/**
 * ISplashScreen : The splash screen interface.
 * 
 * @author Romain DUBOIS
 */
public interface ISplashScreen {

    /**
     * Set the color for the progress bar background.
     * 
     * @param pColor
     *            The progress bar background color
     */
    void setEmptyProgressColor(Color pColor);

    /**
     * Set the color for the progress bar progress.
     * 
     * @param pColor
     *            The progress bar progress color
     */
    void setFilledProgressColor(Color pColor);

    /**
     * Set the color for the text in the empty part of the progress bar.
     * 
     * @param pColor
     *            The text color in empty part
     */
    void setEmptyTextColor(Color pColor);

    /**
     * Set the color for the text in the filled part of the progress bar.
     * 
     * @param pColor
     *            The text color in filled part
     */
    void setFilledTextColor(Color pColor);

    /**
     * Set the background image.
     * 
     * @param pImageUrl
     *            The background image URL
     * @throws IOException
     *             If an error occurred while collecting image
     */
    void setBackgroundImage(URL pImageUrl) throws IOException;

    /**
     * Change the current progress.
     * 
     * @param pValue
     *            The current progress
     * @param pMessage
     *            The message to display
     */
    void setProgress(int pValue, String pMessage);

    /**
     * Close the splash screen.
     */
    void close();
}
